package com.mute.webapp.firstWebApp.springSecurity;

import java.util.HashSet;
import java.util.Set;



//@Getter @Setter
public class UserBO {
	
	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public boolean isEnabled() {
		return enabled;
	}


	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}


	public Set<UserRole> getUserRoles() {
		return userRoles;
	}


	public void setUserRoles(Set<UserRole> userRoles) {
		this.userRoles = userRoles;
	}


	private String userName;
	private String password;
	private boolean enabled;
	Set<UserRole> userRoles;
	
	
	public void loadTestUser() {
		this.userName="user";
		this.password = "password";
		this.enabled = true;
		Set<UserRole> tmp = new HashSet<UserRole>();
		UserRole newRole = new UserRole();
		newRole.setRole("USER");
		tmp.add(newRole);
		this.setUserRoles(tmp);
		
	}

}
